package com.zoght.financial;

import java.io.IOException;
import java.util.List;

import com.zoght.financial.model.GenericReport;
import com.zoght.financial.model.TransactionBean;
import com.zoght.financial.parser.BMOTxParser;

public class Reporting {

	public static void main(String[] args) {
		BMOTxParser parser;
		try {
			parser = new BMOTxParser(args[0]);
			List<TransactionBean> beans = parser.parse();
			GenericReport report = new GenericReport(beans);
			report.generate();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
